/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: AliceMana
 * Date: 2022-12-27
 * Time: 20:42
 */
public class Solution {
    // 判断是否为回文字符串
    public boolean judge (String str) {
        int l = 0;
        int r = str.length()-1;
        while (l <= r) {
            if (str.charAt(l) != str.charAt(r)) {
                return false;
            }
            l++;
            r--;
        }
        return true;
    }


    public int sqrt (int x) {
        // write code here
        double ret = Math.sqrt(x);
        x = (int) ret;
        return x;
    }
}
